package com.bjpowernode.crm.service.impl;

import com.bjpowernode.crm.mapper.ActivityMapper;
import com.bjpowernode.crm.pojo.Activity;
import com.bjpowernode.crm.service.ActivityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class ActivityServiceImpl implements ActivityService {
    @Resource
    private ActivityMapper activityMapper;

    @Override
    public List<String> getOption() {
        return activityMapper.getOption();
    }

    @Override
    public List<Activity> getByCondition(Map map) {
        return activityMapper.getByCondition(map);
    }

    @Override
    public void addActivity(Activity activity) {
        activityMapper.addActivity(activity);
    }

    @Override
    public Activity getEditData(String id) {
        return activityMapper.getEditData(id);
    }

    @Override
    public void editActivity(Activity activity) {
        activityMapper.editActivity(activity);
    }

    @Override
    public void delAct(String[] ids) {
        activityMapper.delAct(ids);
    }

    @Override
    public void addMoreActivity(List<Activity> list) {
        activityMapper.addMoreActivity(list);
    }

    @Override
    public Activity getDetailById(String id) {
        return activityMapper.getDetailById(id);
    }
}
